<!DOCTYPE html>
<!-- saved from url=(0035)http://c.tsz90.com/home/task/addcat -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>任务详情</title>
<link rel="stylesheet" href="__PUBLIC__/static/css/renwu/taskdatail.css">
</head>
<body style="background: rgb(255, 255, 255);">
<header>
	<a onclick="history.back()" class="left"><img src="__PUBLIC__/static/upload/renwu/icon_back.png" alt=""></a>
	选择发布类型
</header>
<div class="release_top">
	<div class="container">
		<div class="row">
			<div class="col-md-4">
				<img src="__PUBLIC__/static/upload/renwu/release02.png" alt="">
				<h3>推广</h3>
				<p>发展优质会员</p>
			</div>
			<div class="col-md-4 middle">
				<img src="__PUBLIC__/static/upload/renwu/release01.png" alt="">
				<h3>发布需求</h3>
				<p>让人脉主动找你</p>
			</div>
			<div class="col-md-4">
				<img src="__PUBLIC__/static/upload/renwu/release03.png" alt="">
				<h3>运营</h3>
				<p>快速获得流量</p>
			</div>
		</div>
	</div>
</div>
<!-- 任务类型 -->
<div class="task_type">
	<div class="container">
		<h3 class="release_title">任务类型</h3>
		<div class="row">
			
						<div class="col-md-4 active" data-id="<?php echo $res[1]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[1]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[2]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[2]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[3]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[3]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[4]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[4]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[5]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[5]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[6]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[6]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[7]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[7]['type'] ?></a>
			</div>
						<div class="col-md-4 " data-id="<?php echo $res[8]['uid'] ?>">
				<a href="javascript:;"><?php echo $res[8]['type'] ?></a>
			</div>
			
			
		</div>
	</div>
</div>


<script src="__PUBLIC__/static/js/renwu/jquery-2.0.3.min.js"></script>
<script>
// 	$(function(){
// // 学校选项卡切换
// 			$('.task_type .col-md-4').click(function(){
// 					$(this).addClass('active').siblings().removeClass('active');
// 					var type = $(".active").data("id");
// 					//alert(type);
// 					window.location.href="/home/task/add?"+"type="+type;
// 				});
	
// 	})
$('.col-md-4').click(function(){
	$(this).addClass('active').siblings().removeClass('active');
	var type = $(".active").data("id");
	// alert(type);
	$.ajax({
		url:'type',
		data:{
			type:type
		},
		success:function(e){
			var json=JSON.parse(e);
            	var type=json.type;
            	// localStorage.setItem('type',json.type);
            	location.href="http://www.tp.com/thinkphp5/public/index.php/index/renwu/type1?type="+type;
		}
	})
})
</script>
		
 </body></html>